package com.liyongjian.page.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.annotation.WebListener;

import org.springframework.beans.factory.annotation.Autowired;

import com.liyongjian.page.service.VisitService;

@WebListener
public class ServletContextListener implements javax.servlet.ServletContextListener {
    @Autowired
    private VisitService visitService;

    public void contextInitialized(ServletContextEvent sce) {
        visitService.hanldConf();
    }

    public void contextDestroyed(ServletContextEvent sce) {}


}
